from django.contrib import admin
from tadmin.models import UserInfo
from tadmin.models import Menu

admin.site.site_header = '任务管理系统'


class UserInfoAdmin(admin.ModelAdmin):
    list_display = ('id', 'username', 'password',)
    list_display_links = ('username',)
    list_per_page = 50

class MenuAdmin(admin.ModelAdmin):
    list_display = ('id', 'data')

admin.site.register(UserInfo, UserInfoAdmin)
admin.site.register(Menu,MenuAdmin)

from .models import Robot  
admin.site.register(Robot)